﻿@model mBlog.ViewModels.ListView<mBlog.Data.Entities.Comment>

@{
    ViewBag.Title = "Comments";
}

<link href="@Url.Content("~/Content/Stylesheets/tablesorterstyle.css")" rel="stylesheet" type="text/css" />
<h2>Comments</h2>
<ol class="commentlist">
    @foreach (var comment in Model.List)
    { 
        <li class="alt">
            <h5>
                <cite>
                    @if (!string.IsNullOrEmpty(comment.Site))
                    { 
                        <a class="url", rel="external nofollow" href=@comment.Site>@comment.Author</a>
                    }else{
                        @comment.Author
                    }
                </cite>&nbsp;Says: <small class="commentmetadata"><a title="" href="#">@comment.Ip</a>
                </small>
            </h5>
            <p>
                @Html.Raw(comment.Content)
            </p>
            <p>
                @Html.ActionLink("Delete", "Delete", new { id = comment.Id })
            </p>
        </li>
    }
</ol>
@{Html.RenderPartial("PostPager", Model.Pager);}



